<template>
	<view class="index-top-bar plr-16 flex flex-ai-center flex-js-sb">
		<w-image src="/static/bg/index-logo.png" :width="373/2" :height="64/2"></w-image>
		<w-icon name="ft-icon" size="24" @click="langSwitch('hk')" v-if="lang=='cn'"></w-icon>
		<w-icon name="jt-icon" size="24" @click="langSwitch('cn')" v-else></w-icon>
	</view>
</template>

<script>
	import {
		mapState,
		mapMutations
	} from 'vuex'
	export default {
		computed: {
			...mapState('lang', ['lang'])
		},
		methods: {
			...mapMutations('lang', ['switchLang']),
			langSwitch(lang) {
				this.switchLang(lang)
			}
		}
	}
</script>

<style>
</style>